package cn.zn.base.bean.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

public class BaseFlowEntity<T extends BaseEntity<?>> extends BaseEntity<T> {

    /**
     * 流程id
     */
    @TableField(value = "FLOW_ID", updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    protected String flowId;

    /**
     * 状态
     */
    @TableField("STATUS")
    protected String status;

    /**
     * 上次流程id
     */
    @TableField("OLD_FLOW_ID")
    protected String oldFlowId;

    /**
     * 签核完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("SIGN_TIME")
    protected Date signTime;

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOldFlowId() {
        return oldFlowId;
    }

    public void setOldFlowId(String oldFlowId) {
        this.oldFlowId = oldFlowId;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }
}
